<?php
cmspad_import('widget.Widget');
class RadioWidget extends Widget{
	
	public $title;
	
	public function __toString(){
		$html = '<INPUT type="radio"';
		if($this->id){
			$html .= ' id="'.$this->id.'"';
		}
		if($this->name){
			$html .= ' name="'.$this->name.'"';
		}
		if($this->class){
			$html .= ' class="'.$this->class.'"';
		}
		if($this->style){
			$html .= ' style="'.$this->style.'"';
		}
		if($this->value){
			$html .= ' value="'.$this->value.'"';
		}
		$html .= '/> ';
		$html .= $this->title;
		return $html;
	}
}
?>